<?php

declare(strict_types=1);

/**
 * @Author:     Frank
 * @contact     frank_hhm@163.com
 * @Date:       2022-11-08 14:55:18
 * @Last Modified time: 2022-11-08 14:55:47
 */

namespace app\common\enum;
use frank\base\BaseEnum;
/**
 * 全局状态枚举类
 * Class StatusEnum
 * @package app\common\enum
 */
class StatusEnum extends BaseEnum
{
    // 正常
    const NORMAL = 1;

    // 禁用
    const DISABLE = 0;

    /**
     * 获取枚举数据
     * @return array
     */
    public static function data()
    {
        return [
            self::NORMAL => [
                'name' => '正常',
                'value' => self::NORMAL,
                'color' => 'green',
            ],
            self::DISABLE => [
                'name' => '禁用',
                'value' => self::DISABLE,
                'color' => 'red',
            ],
        ];
    }
}
